package net.funafuna.funamail.imap4;

import java.util.Arrays;

public class Imap4Response {

    private String code;
    private String message;
    private String[] optionalMessage;

    public Imap4Response(final String code, final String message, final String[] optionalMessage) {
        this.code = code;
        this.message = message;
        this.optionalMessage = optionalMessage;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String[] getOptionalMessage() {
        return optionalMessage;
    }

    public void setOptionalMessage(String[] optionalMessage) {
        this.optionalMessage = optionalMessage;
    }

    @Override
    public String toString() {
        return "code=[" + this.code + "], message=[" + message + "], optionalMessage["
                + Arrays.toString(optionalMessage) + "]";
    }
}
